const express = require("express");
const router = express.Router();

const etymology = require("../controllers/etymology");

router.get("/list", etymology.list);
router.get(
	"/getEtymologyByTypeAndKeyword",
	etymology.getEtymologyByTypeAndKeyword
);
router.get("/getEtymologyDetailById", etymology.getEtymologyDetailById);

router.post("/add", etymology.add);

router.post("/update", etymology.update);

router.post("/del", etymology.del);
router.post("/upload", etymology.upload);

module.exports = router;
